// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
			// 分类导航栏
			classifyArr:[
				{url:'/static/images/classify.png',text:'功能A'},
				{url:'/static/images/classify.png',text:'功能B'},
				{url:'/static/images/classify.png',text:'功能C'},
				{url:'/static/images/classify.png',text:'功能D'},
				{url:'/static/images/cure.png',text:'功能E'},
				{url:'/static/images/classify.png',text:'功能F'},
				{url:'/static/images/card.png',text:'功能G'},
				{url:'/static/images/classify.png',text:'功能H'},
				{url:'/static/images/calendar-day.png',text:'功能I'},
				{url:'/static/images/location.png',text:'功能J'},
				{},
				{}
			],
			// 弹框的数据
			show:false,
			navBArr:[
				{url:'/static/images/address-book.png',text:'功能1'},
				{url:'/static/images/address-book.png',text:'功能2'},
				{url:'/static/images/address-book.png',text:'功能3'},
				{url:'/static/images/address-book.png',text:'功能4'},
				{url:'/static/images/address-book.png',text:'功能5'},
				{url:'/static/images/map.png',text:'功能6'},
				{url:'/static/images/map.png',text:'功能7'},
				{url:'/static/images/map.png',text:'功能8'},
				{url:'/static/images/map.png',text:'功能9'},
				{url:'/static/images/map.png',text:'功能10'},
				{},
				{}
			],
	},	
	// 方法
	// 关闭弹框
	onClose() {
    this.setData({ show: false });
	},
	// 打开弹框
	showDialog(){
    this.setData({ show: true });
	},
	onShow(){
     if(typeof this.getTabBar === 'function' && this.getTabBar()){
			 this.getTabBar().setData({
				 selected:0
			 })
		 }
	}
})
